<%@ taglib uri='http://java.sun.com/jsp/jstl/core' prefix='c'%>

<c:set var="cpath" value="${pageContext.servletContext.contextPath}"
	scope="page" />

<!-- Do NOT put any DOCTYPE here unless you want problems in IEs. -->
<html>
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache" />
<META HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<META http-equiv="expires" content="SUN, 1 JAN 1900 01:00:00 GMT" />

<!-- Each valid html page must have a head; let's create one. -->
<head>
<!-- The following line defines content type and utf-8 as character set. -->
<!-- If you want your application to work flawlessly with various local -->
<!-- characters, just make ALL strings, on the page, json and database utf-8. -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<!-- Ext relies on its default css so include it here. -->
<!-- This must come BEFORE javascript includes! -->
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/resources/css/ext-all.css">

<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/resources/css/xtheme-gray.css">

<%-- 
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/resources/css/xtheme-slate.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/resources/css/xtheme-poop-theme/css/xtheme-poop-theme.css">
--%>

<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/examples/ux/statusbar/css/statusbar.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/examples/ux/fileuploadfield/css/fileuploadfield.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/resources/css/htmleditorplugins.css">
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/lib/extjs/examples/ux/treefilterx/css/remotetree.css">

<!-- Include here your own css files if you have them. -->
<link rel="stylesheet" type="text/css"
	href="<c:out value="${cpath}"/>/resource/journal.css">

<!-- First of javascript includes must be an adapter... -->
<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/adapter/ext/ext-base.js"></script>

<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/log4js.js"></script>

<!-- ...then you need the Ext itself, either debug or production version. -->
<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/ext-all-debug.js"></script>
<%--  <script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/ext-all.js"></script>
 --%>
<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/examples/ux/SearchField.js"></script>
<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/Ext.ux.HtmlEditor.Plugins-0.2-all.js"></script>

<%-- 
<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/src/Ext.ux.FitToParent.js"></script>
--%>

<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/examples/ux/statusbar/StatusBar.js"></script>

<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/ux/journal.ux.TabCloseMenu.js"></script>

<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/examples/ux/fileuploadfield/FileUploadField.js"></script>

<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/examples/ux/treefilterx/js/Ext.ux.tree.TreeFilterX.js"></script>
<script type="text/javascript"
	src="<c:out value="${cpath}"/>/lib/extjs/examples/ux/treefilterx/js/Ext.ux.tree.RemoteTreePanel.js"></script>

<!-- Include here your extended classes if you have some. -->

<!-- Include here you application javascript file if you have it. -->

<script
	src="<c:out value="${cpath}"/>/lib/component/journal.ui.HtmlEditor.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/lib/component/journal.ui.ValueField.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/lib/component/journal.ui.SearchField.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/lib/component/journal.ui.LineSeparator.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/lib/component/journal.ui.TreeFilter.js"
	type="text/javascript"></script>

<script src="<c:out value="${cpath}"/>/lib/journal.Constant.js"
	type="text/javascript"></script>
<script src="<c:out value="${cpath}"/>/home/script/journal.Config.js"
	type="text/javascript"></script>
<script src="<c:out value="${cpath}"/>/lib/journal.LoggerFactory.js"
	type="text/javascript"></script>
<script src="<c:out value="${cpath}"/>/lib/journal.Utility.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.Setup.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.StateService.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.ImportWindow.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.NodePropertyDialog.js"
	type="text/javascript"></script>

<script
	src="<c:out value="${cpath}"/>/preference/script/journal.preference.SecurityForm.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/preference/script/journal.preference.GeneralForm.js"
	type="text/javascript"></script>

<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.PreferenceDialog.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.AdvSearchDialog.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.PropertyDialogForm.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.Menubar.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.MainToolbar.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.EntryExplorerToolbar.js"
	type="text/javascript"></script>

<script
	src="<c:out value="${cpath}"/>/home/script/eventhandler/journal.home.MainHandler.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/eventhandler/journal.home.EntryExplorerHandler.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/eventhandler/journal.home.EntryEditorHandler.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/eventhandler/journal.home.EntryExplorerHandler.js"
	type="text/javascript"></script>

<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.EntryExplorerPanel.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.ExplorerPanel.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.EntryEditorPanel.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.SearchTab.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.EntryForm.js"
	type="text/javascript"></script>
<script
	src="<c:out value="${cpath}"/>/home/script/journal.home.PreferenceExplorerPanel.js"
	type="text/javascript"></script>
<script src="<c:out value="${cpath}"/>/home/script/journal.home.Main.js"
	type="text/javascript"></script>

<!-- Set a title for the page (id is not necessary). -->
<title>Journal Application - Home</title>

<!-- You can have onReady function here or in your application file. -->
<!-- If you have it in your application file delete the whole -->
<!-- following script tag as we must have only one onReady. -->
<script type="text/javascript">
	Ext.BLANK_IMAGE_URL = 'resource/s.gif';
	Ext.QuickTips.init();

	journal.home.Main.constructor( {
		user : '<c:out value="${sessionScope.user.username}"/>',
		appVersion : '<c:out value="${applicationScope.appVersion}"/>'
	});
	Ext.onReady(journal.home.Main.init, journal.home.Main);

	//-->
</script>

<!-- Close the head -->
</head>

<!-- You can leave the body empty in many cases, or you write your content in it. -->
<body>
<div id="loading-mask"></div>
<div id="loading">
<div class="loading-indicator">Loading...</div>
</div>
</body>

<!-- Close html tag at last -->
</html>